package springbootrest.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import springbootrest.demo.domain.User;

/**
 * @Author acy
 * @Date 2019/05/19
 */
@RestController
public class UserRestController {

	@PostMapping("/echo/user")
	public User user(@RequestBody User user){
		return user;
	}
}
